package com.li.kafka.wechat.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Data
@Configuration
@ConfigurationProperties(prefix = "template")
public class WechatTemplateProperties {
  private List<WechatTemplate> templates;
  private int templateResultType; // 0文件，1数据库，2ES
  private String templateResultFilePath;

  @Data
  public static class WechatTemplate {
    private String templateId;
    private String templateFilePath;
    private boolean active;
  }
}
